﻿@model List<JustSiteWorker.Statistika>

@{
    ViewBag.Title = "Statistika";
    int count = 0;
}

<h2>Статистика</h2>

<table border="0" style="width: 100%; border: 1px solid gray; text-align: center;">
    <thead>
        <tr>
            <th>Ip</th>
            <th>PC Name</th>
           @* <th>Host</th>*@
            <th>Browser</th>
            <th>Br Version</th>
            <th>Br Platform</th>
            <th>Family</th>
            <th>Date</th>
        </tr>
    </thead>
    <tbody>
        @foreach (JustSiteWorker.Statistika statistika in Model)
        {
            count++;
            <tr>
                <td>@statistika.Ip</td>
                <td>@statistika.PCName</td>
                @*<td>@statistika.Host</td>*@
                <td>@statistika.Browser</td>
                <td>@statistika.Br_Version</td>
                <td>@statistika.Br_Platform</td>
                <td>@statistika.Family</td>
                <td>@statistika.Time.ToString("dd.mm.yyyy hh:mm")</td>
            </tr>
        }

        @if (count == 0)
        {
            <tr>
                <td colspan="8">Нету Статистики
                </td>
            </tr> 
        }
    </tbody>
    <tfoot>
        <tr>
            <td colspan="8" style="text-align: right;">Всего: @count</td>
        </tr>
    </tfoot>
</table>

<input type="button" value="Back" onclick="document.location = '/Home/Admin'" />
